import modal

app = modal.App("git-app")

# 安装 git 和 ffmpeg
image = modal.Image.debian_slim().apt_install("git", "ffmpeg")

@app.function(image=image)
def run_command():
    import subprocess
    subprocess.run("ffmpeg -version", shell=True)
    subprocess.run("git --version", shell=True)

@app.local_entrypoint()
def main():
    run_command.remote()